// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addDraft POST /api/Draft/addDraft */
export async function addDraftUsingPost(body: API.WxMpAddDraft, options?: { [key: string]: any }) {
  return request<API.BaseResponse>('/api/Draft/addDraft', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listDraftByPage POST /api/Draft/list/page */
export async function listDraftByPageUsingPost(
  body: API.PageRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponse>('/api/Draft/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
